<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>excutor</title>
</head>
<body>
    <script>
        let P = Promise.reject(222);
        console.log(P)
        let P2 = Promise.reject("OK");
        console.log(P2)
        let P3 = Promise.reject(new Promise((resolve, reject) => {
            reject("error")
        }));
        console.log(P3)
        let P4 = Promise.reject(new Promise((resolve, reject) => {
            resolve("ok")
        }));
        console.log(P4)
    </script>
</body>
</html>